package com.pxst.merchant.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: @Ryan
 * @Description:
 * @CreateTime: 2023-09-14 14:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MerchantAccountReq {

    @ApiModelProperty("商户id")
    private Long merchantId;

    @ApiModelProperty("商户编码")
    private String merchantCode;

    @ApiModelProperty(value = "商户银行卡id",required = true)
    @NotNull(message = "银行卡id不能为空")
    private Long merchantBankCardId;

    @ApiModelProperty("银行名称")
    private String bankName;

    @ApiModelProperty("银行编码")
    private String bankCode;

    @ApiModelProperty("支行")
    private String branch;

    @ApiModelProperty("卡号")
    private String cardNumber;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createAt;

    @ApiModelProperty("商户名称")
    private String name;

    @ApiModelProperty(value = "账户状态",required = true)
    @NotNull(message = "状态不能为空")
    private Integer status;

}
